﻿using System.Collections.Generic;
using UnityEngine;
using QFramework;

namespace HKTools
{
    public class Test_FirstPlayerCamChangePos : HK_FirstPersonCamController
    {
        [SerializeField] List<Transform> pos_List;

        void Update()
        {
            if (Input.GetKeyDown(KeyCode.Alpha1))
            {
                this.SendCommand(new CMD_ChangeFirstPersonPos(pos_List[0], true));
            }

            if (Input.GetKeyDown(KeyCode.Alpha2))
            {
                this.SendCommand(new CMD_ChangeFirstPersonPos(pos_List[1], true));
            }

            if (Input.GetKeyDown(KeyCode.Alpha3))
            {
                this.SendCommand(new CMD_ChangeFirstPersonPos(pos_List[2], true));
            }
        }
    }
}